/** 
 * Description:
 * Date:2012-1-12
 * Author:Along	
*/
package com.community.shopping.web;

import java.io.File;

import com.community.shopping.util.Img_Middle;

public class ImgPress implements Runnable{
	
	/**
	 * 源文件名称
	 */
	private String fileName="";
	/**
	 * 源文件路径
	 */
	private String tempPath="";
	/**
	 * 文件保存路径
	 */
	private String filePath="";

	public ImgPress(String fileName,String tempPath,String filePath)
	{
		this.fileName=fileName;
		this.filePath=filePath;
		this.tempPath=tempPath;
	}
	public void run() {
		File file=new File(filePath+fileName);
		if (!file.exists())
		{
		File oldFile=new File(tempPath+fileName);
		Img_Middle.imgGroupPress(oldFile, filePath, fileName);
		}
	}

	
}
